import Main from './main.vue'
import {App, createApp} from 'vue'
// style.css
import '@/asset/style.css'
// uno.css
import 'virtual:uno.css'
// store
import {setupStore} from './store'
// router
import {setupRouter} from './router'

async function bootstrap() {
    console.info('-> bootstrap <-')
    const app: App<Element> = createApp(Main)

    await setupStore(app)
    await setupRouter(app)

    app.mount('#app')
}

bootstrap().catch(error => console.error(error))
